home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-01 | 3.8 KB | 93 lines | [TEXT/KEEN] |
- EnterAct Memory Needs Sept 96
- (note these have been revised slightly upwards for version 3.7)
- ----------------------------
- EnterAct ships with a default partition of 7 Meg, and this is the recommended
- size for regular use. If you decrease EnterAct's partition you may need to strip
- unneeded header files from your project to avoid running out of memory. In
- practise that's a real nuisance to to, so live with the 7 Meg if you can.
-
- Bare minimum: 1024K.
- Small project (almost no dictionary): 2 Meg.
- Small-medium projects: 2-3 Meg.
- Many large projects: 4-6 Meg.
- Just about anything: 7-8 Meg.
- Incredibly huge hAWK programs: you should now REDUCE rather than increase
- EnterAct's partition, hAWK programs now take memory from the Finder
- if needs grow beyond 300K
- (minimum EnterAct partition required to run hAWK is 1.4 Meg)
- Cross-referencing all of a medium-to-large project: everything you've got,
- and cross your fingers
- Some details follow.
-
- EnterAct keeps your entire project dictionary in memory, which
- means that large projects can need a lot of memory. This guide
- will help you estimate how much memory EnterAct should be
- given to handle a particular project.
-
- Dictionary memory needs can be determined from the sizes of
- source and header files with reasonable accuracy. To find out
- the size of a set of files, add the files to your project, use the
- Find dialog or <Option>-drag in the project window to select
- them, and then run the hAWK program "$FileSizes".
- 1 System headers: memory = 1.2 times total file sizes.
- 2 Your headers: memory = total file sizes.
- 3 Source (.c) files: memory = .16 times total file sizes.
- Add up these three memory numbers, and then add ~1000K for
- basic operations to arrive at your total memory needs. If you
- want to run hAWK programs, add an additional 300K (200K
- might be enough, it depends on the program).
-
- To view your free memory within EnterAct, select "Show
- Activities..." and check the number in the resulting dialog.
-
- If total memory needs turn out to be too large, the best place to
- go trimming is among the system headers. There will probably
- be several headers that you don't need, and if you take a few
- minutes now to identify the ones you don't need and remove
- them from your project you may well find you're back in
- business.
-
- Some large headers that you may not need:
- AppleEvents.h
- AppleTalk.h
- Errors.h
- Files.h
- Quickdraw.h
- Script.h
- Sound.h
- SysEqu.h (or LowMem.h or LoMem.h)
- Traps.h
- Gestalt.h
- --and there are many others nearly as large that you might
- want to omit. If you don't need it, remove it.
-
- If you do need to strip some headers out in order to free up
- memory, here's the way to do it once:
- • make a new project, add all headers in folders of interest
- that you would include in all your projects (typically at
- least do an "Add Mac Headers")
- • use Remove File to remove the ones you don't want
- • place bullets beside all remaining file names by opening
- the Find dialog and clicking the "All" button
- • select "hAWK" from the "EnterAct" menu, use the topmost
- popup there to select the program named "$EchoFullpathNames"
- and click the Run button
- • use Save As on the resulting window to save the list of
- full path names
- •later, when you create a new project, first hold down the
- <Shift> key and select "Add Files from List..." - pick your
- file list in the resulting Open dialog, and your stripped-down
- list of headers (or any files for that matter) will be added
- to your project.
-
- You can also exclude a file from being built into your dictionary
- by holding down the <Command> key as you click on its name in
- the project window. A dash '-' will appear to the left of its name,
- indicating that the parser will skip over it. To exclude a file name
- in a list of full path names, precede the name with an exclamation
- mark '!'. The file will still be added to your project, but with a
- dash beside its name.
-
-
-
-